home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
LOGIC Apps
/
Logic-APPLE_II_APPS.iso
/
mac
/
LOGIC Apple II 5.25" Library - ProDOS
/
PRO026.dsk
/
STARTUP.bas
< prev
next >
Wrap
BASIC Source File
|
2012-02-16
|
2KB
|
33 lines
100 REM ************************************
110 REM * *
120 REM * Stock Portfolio Tracking Program *
130 REM * Copyright 1986 by Eric P. King *
140 REM * STARTUP V 2.10 *
150 REM ************************************
160 REM
170 CALL PEEK(175) +256 * PEEK(176) -46
180 ONERR GOTO 210
190 D$ = CHR$(4): PRINT D$"PR#3": PRINT D$"VERIFY CONFIG"
200 PRINT D$"RUN STOCKTRK"
210 HOME : PRINT D$"PREFIX": INPUT P1$
220 PRINT : PRINT : & "CENTER","** ENSURE CAPS LOCK KEY IS DOWN **": PRINT : PRINT
230 PRINT " THE BOOT PREFIX IS "P1$: PRINT : PRINT "Is this the path to be used to record your data? (Y/N)"
240 INPUT A$: IF A$ = "" GOTO 240
250 IF A$ = "Y" GOTO 420
260 HOME : PRINT "The path cannot be more than 3 levels deep.": PRINT "Please type carefully.": PRINT "The required /'s are added by the program"
270 PRINT "for you automatically.": PRINT : PRINT
280 & "CENTER","Enter pathname elements. Up to 3 are allowed."
290 & "POS",1,14: CALL -958: PRINT "Enter Volume name. ";
300 & "IU","#=A..Z,/,.,0..9;*=A..Z";"*##############";U$(0)
310 IF U$(0) = "" GOTO 290
320 U$(0) = "/" +U$(0)
330 & "POS",1,16: CALL -958: PRINT "Enter name. ";
340 & "IU","#=A..Z,/,.,0..9;*=A..Z";"*##############";U$(1)
350 IF U$(1) = "" GOTO 410
360 U$(0) = U$(0) +"/" +U$(1)
370 & "POS",1,18: CALL -958: PRINT "Enter name. ";
380 & "IU","#=A..Z,/,.,0..9;*=A..Z";"*##############";U$(2)
390 IF U$(2) = "" GOTO 410
400 U$(0) = U$(0) +"/" +U$(2)
410 P1$ = U$(0)
420 PRINT D$"OPEN CONFIG": PRINT D$"WRITE CONFIG": PRINT P1$: PRINT D$"CLOSE": GOTO 200